{if $first}
<div>
    <form id="userSearchForm" method="POST" action="?{$znf.moduleIndex}=user&amp;{$znf.actionIndex}=get">
    	<fieldset>
    		<legend>Iskanje</legend>
    		<table>
		    <tbody>
	    		<tr>
			    <td><label for="name" >Uporabnik:</label></td>
			    <td><input id="name" name="name" type="text" size="30" /></td>
                            <td><button id="searchSubmit" type="submit" class="button">Predloži</button></td>
 	    		</tr>
		    </tbody>
		</table>
		</fieldset>
    </form>
</div>
<br />
<br />
<div id="userListForm">
{/if}
  <form id="userForm" method="POST" action="?{$znf.moduleIndex}=user&amp;{$znf.actionIndex}=delete">
  <table>
  	  <thead>
			<tr>
  				<th>Briši</th>
	  			<th>Id</th>
	  			<th>Ime</th>
	  			<th>Primek</th>
	  			<th>Upor. ime</th>
	  			<th>E-mail</th>
	  			<th>Datum registracije</th>
	  			<th>Zadnji login</th>
	  			<th>Stevilo login-ov</th>
			</tr>
  	  </thead>
  	  <tbody>
  			{foreach from=$users item=user name=counter}
  			    <tr class="{if !$user.active}inactive{/if} {if $smarty.foreach.counter.index % 2 == 0}evenRow{else}oddRow{/if}">
  				<td><input name="delete[]" value="{$user.id}" type="checkbox" /></td>
  				<td class="number">{$user.id}</td>
  				<td><a href="?{$znf.moduleIndex}=user&amp;{$znf.actionIndex}=get&amp;id={$user.id}&amp;pageID={$pageID}" class="getLink">{$user.name}</a></td>
  				<td><a href="?{$znf.moduleIndex}=user&amp;{$znf.actionIndex}=get&amp;id={$user.id}&amp;pageID={$pageID}" class="getLink">{$user.surname}</a></td>
  				<td>{$user.username}</td>
  				<td><a href="mailto:{$user.email}">{$user.email}</a></td>
  				<td class="other">{$user.regdate}</td>
  				<td class="other">{$user.lastlogin}</td>
  				<td class="number">{$user.logincount}</td>
  			    </tr>
  			{/foreach}
  	  </tbody>
  	</table>
	<div class="buttons">
	    <button id="userSubmit" type="submit" class="button negative">Briši</button>
	    <button type="reset" class="button">Preklic izbire</button>
	    <button id="selectAll" type="button" class="button">Izberi vse</button>
	</div>
  </form>
  <div id="pager">
       {$pager}
  </div>
{if $first}
</div>
{/if}